<template>
	<view class="content">
		<view class="pageTit">
			<h3> <span></span> 礼品卡 <span></span></h3>
			<p>副标题</p>
		</view>
		<view class="main">
			<view class="items" v-for="(item,index) in 2" :key='index'>
				<view class="icon">
					<image src="../../static/images/card1.png" mode=""></image>
					<h3>储值卡</h3>
					<p>¥<span>700</span></p>
				</view>
				<view class="d">
					<view class="info">
						<h3>礼品卡</h3>
						<p>¥<span>299</span></p>
					</view>
					<p class="add"> <image src="../../static/images/add.png" mode=""></image> </p>
				</view>
			</view>
			<button type="primary" plain="true" @tap="toGift" class="btn">查看更多</button>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {}
		},
		onLoad() {

		},
		methods: {
			toGift(){
				uni.navigateTo({
					url: '/pages/giftCenter/giftCenter',
					success: res => {},
					fail: () => {},
					complete: () => {}
				});
			}

		}
	}
</script>

<style lang="scss" scoped>
	.main{
		padding: 0 30rpx;
		.btn {
			width: 400rpx;
			height: 80rpx;
			line-height: 80rpx;
			font-size: 28rpx;
			background-color: rgb(74, 144, 226);
			border-radius: 40rpx;
			color: rgb(255, 255, 255);
			border: none;
			margin-top: 40rpx;
		}
	}
.pageTit{
	text-align: center;
	padding-top: 30rpx;
	padding-bottom: 30rpx;
	h3{
		font-size: 34rpx;
		font-weight: bold;
		display: flex;
		align-items: center;
		justify-content: center;
		span{
			width: 40rpx;
			height: 2rpx;
			background-color: rgba(0,0,0,0.1);
			margin: 0 20rpx;
		}
	}
	p{
		font-size: 26rpx;
		color: #666;
		font-weight: bold;
	}
}
.items{
	width: 690rpx;
	overflow: hidden;
	border-radius: 10rpx;
	box-shadow: 0 0 14px rgba(0, 0, 0, .1);
	margin-bottom: 30rpx;
	.d{
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 20rpx;
		h3{
			font-size: 38rpx;
			color: #333;
			margin-bottom: 10rpx;
		}
		p{
			color: #4a90e2;
			font-size: 32rpx;
			span{
				font-size: 42rpx;
			}
		}
		.add{
			image{
				width: 50rpx;
				height: 50rpx;
				display: block;
			}
		}
	}
	.icon{
		width: 100%;
		height: 388rpx;
		position: relative;
		border-radius: 10rpx;
		overflow: hidden;
		image{
			display: block;
			position: absolute;
			left: 0;
			top: 0;
			width: 100%;
			height: 100%;
		}
		h3{
			position: absolute;
			left: 30rpx;
			top: 30rpx;
			color: #fff;
			font-size: 50rpx;
		}
		p{
			position: absolute;
			left: 30rpx;
			bottom: 30rpx;
			color: #fff;
			font-size: 40rpx;
			span{
				font-size: 50rpx;
			}
		}
	}
}
	
</style>